#include <stdio.h>

int main()
{
    char passowrd[20] = {0};
    printf("请输入密码--->");
    scanf("%s", passowrd);
    while (getchar() != '\n')
    {
        ;
    }
    printf("确认或取消(Y/N):");
    if (getchar() == 'Y')
    {
        printf("确认成功\n");
    } else {
        printf("取消确认\n");
    }
    return 0;
}
